package tx.transaction;

import cn.stimd.spring.jdbc.datasource.JdbcTransactionObjectSupport;

/**
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
public class MyTransactionObject extends JdbcTransactionObjectSupport {
    public void setRollbackOnly() {
        getConnectionHolder().setRollbackOnly();
    }

    @Override
    public boolean isRollbackOnly() {
        return getConnectionHolder().isRollbackOnly();
    }
}
